﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000DD5 RID: 3541
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RebattleByClientCsNotify : IMessage<RebattleByClientCsNotify>, IMessage, IEquatable<RebattleByClientCsNotify>, IDeepCloneable<RebattleByClientCsNotify>, IBufferMessage
	{
		// Token: 0x17002CF2 RID: 11506
		// (get) Token: 0x06009EE7 RID: 40679 RVA: 0x001A8D7B File Offset: 0x001A6F7B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RebattleByClientCsNotify> Parser
		{
			get
			{
				return RebattleByClientCsNotify._parser;
			}
		}

		// Token: 0x17002CF3 RID: 11507
		// (get) Token: 0x06009EE8 RID: 40680 RVA: 0x001A8D82 File Offset: 0x001A6F82
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RebattleByClientCsNotifyReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17002CF4 RID: 11508
		// (get) Token: 0x06009EE9 RID: 40681 RVA: 0x001A8D94 File Offset: 0x001A6F94
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RebattleByClientCsNotify.Descriptor;
			}
		}

		// Token: 0x06009EEA RID: 40682 RVA: 0x001A8D9B File Offset: 0x001A6F9B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RebattleByClientCsNotify()
		{
		}

		// Token: 0x06009EEB RID: 40683 RVA: 0x001A8DA4 File Offset: 0x001A6FA4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RebattleByClientCsNotify(RebattleByClientCsNotify other) : this()
		{
			this.stt_ = ((other.stt_ != null) ? other.stt_.Clone() : null);
			this.rebattleType_ = other.rebattleType_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06009EEC RID: 40684 RVA: 0x001A8DF0 File Offset: 0x001A6FF0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RebattleByClientCsNotify Clone()
		{
			return new RebattleByClientCsNotify(this);
		}

		// Token: 0x17002CF5 RID: 11509
		// (get) Token: 0x06009EED RID: 40685 RVA: 0x001A8DF8 File Offset: 0x001A6FF8
		// (set) Token: 0x06009EEE RID: 40686 RVA: 0x001A8E00 File Offset: 0x001A7000
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public BattleStatistics Stt
		{
			get
			{
				return this.stt_;
			}
			set
			{
				this.stt_ = value;
			}
		}

		// Token: 0x17002CF6 RID: 11510
		// (get) Token: 0x06009EEF RID: 40687 RVA: 0x001A8E09 File Offset: 0x001A7009
		// (set) Token: 0x06009EF0 RID: 40688 RVA: 0x001A8E11 File Offset: 0x001A7011
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RebattleType RebattleType
		{
			get
			{
				return this.rebattleType_;
			}
			set
			{
				this.rebattleType_ = value;
			}
		}

		// Token: 0x06009EF1 RID: 40689 RVA: 0x001A8E1A File Offset: 0x001A701A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RebattleByClientCsNotify);
		}

		// Token: 0x06009EF2 RID: 40690 RVA: 0x001A8E28 File Offset: 0x001A7028
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RebattleByClientCsNotify other)
		{
			return other != null && (other == this || (object.Equals(this.Stt, other.Stt) && this.RebattleType == other.RebattleType && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06009EF3 RID: 40691 RVA: 0x001A8E78 File Offset: 0x001A7078
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.stt_ != null)
			{
				num ^= this.Stt.GetHashCode();
			}
			if (this.RebattleType != RebattleType.None)
			{
				num ^= this.RebattleType.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06009EF4 RID: 40692 RVA: 0x001A8ED3 File Offset: 0x001A70D3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06009EF5 RID: 40693 RVA: 0x001A8EDB File Offset: 0x001A70DB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06009EF6 RID: 40694 RVA: 0x001A8EE4 File Offset: 0x001A70E4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.stt_ != null)
			{
				output.WriteRawTag(58);
				output.WriteMessage(this.Stt);
			}
			if (this.RebattleType != RebattleType.None)
			{
				output.WriteRawTag(80);
				output.WriteEnum((int)this.RebattleType);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06009EF7 RID: 40695 RVA: 0x001A8F40 File Offset: 0x001A7140
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.stt_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.Stt);
			}
			if (this.RebattleType != RebattleType.None)
			{
				num += 1 + CodedOutputStream.ComputeEnumSize((int)this.RebattleType);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06009EF8 RID: 40696 RVA: 0x001A8F98 File Offset: 0x001A7198
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RebattleByClientCsNotify other)
		{
			if (other == null)
			{
				return;
			}
			if (other.stt_ != null)
			{
				if (this.stt_ == null)
				{
					this.Stt = new BattleStatistics();
				}
				this.Stt.MergeFrom(other.Stt);
			}
			if (other.RebattleType != RebattleType.None)
			{
				this.RebattleType = other.RebattleType;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06009EF9 RID: 40697 RVA: 0x001A9000 File Offset: 0x001A7200
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06009EFA RID: 40698 RVA: 0x001A900C File Offset: 0x001A720C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 58U)
				{
					if (num != 80U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.RebattleType = (RebattleType)input.ReadEnum();
					}
				}
				else
				{
					if (this.stt_ == null)
					{
						this.Stt = new BattleStatistics();
					}
					input.ReadMessage(this.Stt);
				}
			}
		}

		// Token: 0x04003D46 RID: 15686
		private static readonly MessageParser<RebattleByClientCsNotify> _parser = new MessageParser<RebattleByClientCsNotify>(() => new RebattleByClientCsNotify());

		// Token: 0x04003D47 RID: 15687
		private UnknownFieldSet _unknownFields;

		// Token: 0x04003D48 RID: 15688
		public const int SttFieldNumber = 7;

		// Token: 0x04003D49 RID: 15689
		private BattleStatistics stt_;

		// Token: 0x04003D4A RID: 15690
		public const int RebattleTypeFieldNumber = 10;

		// Token: 0x04003D4B RID: 15691
		private RebattleType rebattleType_;
	}
}
